package com.kstudio.videocapture.listfile.fileaction;

import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.kstudio.videocapture.R;

public class KFileActionAdapterWrapper {
    private View                mBase;
    private ImageView            mIcon;
    private TextView             mName;

    public KFileActionAdapterWrapper(View base) {
        this.mBase = base;

        this.mIcon = null;
        this.mName = null;
    }

    public ImageView getIcon() {
        if(mIcon == null) {
            mIcon = (ImageView)mBase.findViewById(R.id.fileaction_row_icon);
        }
        return mIcon;
    }

    public TextView getName() {
        if(mName == null) {
            mName = (TextView)mBase.findViewById(R.id.fileaction_row_name);
        }
        return mName;
    }
 }
